package xyz.lwm.lazycat.beans;

import java.util.LinkedList;

/**
 * design registry customizers
 *
 * @author lwm
 */
class BeanDesignRegistryCustomizers {

    private final LinkedList<BeanDesignRegistryCustomizer> registries = new LinkedList<>();

    public void add(BeanDesignRegistryCustomizer registryCustomizer) {
        registries.add(registryCustomizer);
    }

    public boolean hasNext() {
        return !registries.isEmpty();
    }

    public BeanDesignRegistryCustomizer next() {
        return registries.removeFirst();
    }

}
